import request from '@/utils/request'

// 查询学生类型列表
export function listStudentType(query) {
  return request({
    url: '/system/studentType/list',
    method: 'get',
    params: query
  })
}

// 查询学生类型详细
export function getStudentType(stId) {
  return request({
    url: '/system/studentType/' + stId,
    method: 'get'
  })
}

// 新增学生类型
export function addStudentType(data) {
  return request({
    url: '/system/studentType',
    method: 'post',
    data: data
  })
}

// 修改学生类型
export function updateStudentType(data) {
  return request({
    url: '/system/studentType',
    method: 'put',
    data: data
  })
}

// 删除学生类型
export function delStudentType(stId) {
  return request({
    url: '/system/studentType/' + stId,
    method: 'delete'
  })
}
